<template>
  <view class="comment_wrap">
    <view class="comment_head">
      <image src="../../static/timer_icon_08.png" class="comment_icon"></image>

      <view class="comment_text">评论</view>
    </view>
    <view class="comment_list">
      <view class="comment_item" v-for="item in comment_all">
        <view class="item_head">
          <image :src="item.avatar" class="item_avatar"/>
          <view class="item_right">
            <view class="item_name">{{ item.nickname }}</view>
            <view class="item_time">{{ item.createtime }}</view>
          </view>
        </view>
        <view class="item_content">{{ item.content }}</view>
      </view>
    </view>
    <view class="more_comment" @click="loadMore" v-if="page < total">
      <view class="more_text">更多评论</view>
	  <image class="more_icon" src="../../static/timer_icon_09.png"></image>
    </view>
  </view>

</template>

<script>
export default {
  name:"commentList",
  data(){
    return{
      comment_all:[],
      page:1,
      total:0,

    }
  },
  methods:{
    loadMore(){

    }
  }
}
</script>

<style lang="scss" scoped>

.comment_wrap {
  margin-top: 30rpx;
  border-radius: 24rpx;
  background: #FFFAEF;
  padding: 50rpx 20rpx 46rpx;
  box-sizing: border-box;
  .comment_head {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .comment_icon {
    width: 80rpx;
    height: 80rpx;
    display: block;
  }
  .comment_text {
    color: #FF5790;
    font-size: 30rpx;
    font-weight: 600;
    margin-left: 28rpx;
  }
  .comment_list {
    margin-top: 60rpx;
  }
  .comment_item + .comment_item {
    margin-top: 50rpx;
  }
  .item_head {
    display: flex;
    align-items: center;
  }
  .item_avatar {
    width: 66rpx;
    height: 66rpx;
    border-radius: 50%;
    display: block;
    margin-right: 22rpx;
  }
  .item_right {
    flex: 1;
    overflow: hidden;
  }
  .item_name {
    font-size: 28rpx;
    color: #333333;
    line-height: 1;
  }
  .item_time {
    margin-top: 12rpx;
    color: #AAAAAA;
    font-size: 22rpx;
    line-height: 1;
  }
  .item_content {
    margin-left: 88rpx;
    margin-top: 10rpx;
    font-size: 26rpx;
    color: #333333;
    line-height: 40rpx;
  }
  .more_comment {
    margin: 52rpx auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1rpx solid #FF5790;
    width: 290rpx;
    height: 86rpx;
    border-radius: 43rpx;
  }
  .more_text {
    color: #FF5790;
    font-size: 30rpx;
    font-weight: 600;
  }
  .more_icon {
    margin-left: 12rpx;
    width: 12rpx;
    height: 21rpx;
    display: block;
  }
}
</style>
